package com.kong.provider1.domain;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * @author gedachao
 * @description
 * @date 2020-08-12 13:21
 */
public class Cat {
    /**
     * 反序列化时指定相关的参数名,获取其value到该属性
     */
    @JSONField(alternateNames = {"name", "catName"})
    private String name;
    private int age;

    public Cat() {
    }

    public Cat(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @JSONField(name = "catName")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
